Home:ALL Converter>is it possible to connect to AWS RDS db instance(postgres) through ubuntu server installed out of aws(in my local)?

is it possible to connect to AWS RDS db instance(postgres) through ubuntu server installed out of aws(in my local)?

Ask Time:2021-07-21T15:29:05         Author:Niki

Json Formatter

Actually i have to migrate the data from AWS RDS postgres to on premises postgres.

For this i have to establish connectivity between my AWS RDS db instance and on premises(ubuntu server).

I have already configured the inbound rules of security group in my RDS DB instance. But still i am not able to connect to AWS RDS db instance directly through my Ubuntu Machine..

Is there any issue with the firewall of my VM??

Error which i am getting:

psql: error: could not connect to server: Connection timed out
       Is the server running on host "XXXXXX" (X.X.X.X/X) and accepting
       TCP/IP connections on port 5432?

The database setting for publicly accessible is set to NO. There are both public as well as private subnet associated with my RDS instance. i have provided the type as postgreSQL , port 5432 , protocol TCP, source custom ip (X.X.X.X/32) Any help will be much appreciated.

Author:Niki,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/68465554/is-it-possible-to-connect-to-aws-rds-db-instancepostgres-through-ubuntu-server
yy